package com.方法;
                                          //可变参数
public class Method04 {
    public static void main(String[] args) {
        Method04 method04 = new Method04();
        method04.test(1,2,3,4,3,4,6);
    }
    //int...i必须放在最后面
    public void test(int x,int... i){
        System.out.println(i[5]);
        System.out.println(i[4]);
        System.out.println(i[3]);
        System.out.println(i[2]);
        System.out.println(i[1]);
    }
}
